package com.global.gbinventory.barang.util;


public enum TYPE {

	MEREKs("Mereks", "Merek", "id", new String[]{"Merek"}, new String[]{"getNama"}),
	
	SATUANs("Satuans", "Satuan", "id", new String[]{"Satuan"}, new String[]{"getNama"}),
	
	GUDANGs("Gudangs", "Gudang", "id", new String[]{"Kode Gudang", "Nama Gudang", "Lokasi Gudang"}, 
	new String[]{"getKode", "getNama", "getLokasi"}),
	
	GRUPs("Grups", "Grup", "id", new String[]{"Grup"}, new String[]{"getNama"}),
	
	SUBGRUPs("SubGrups", "SubGrup", "id", new String[]{"Sub-Grup"}, new String[]{"getNama"}),
	
	KARYAWANs("Karyawans", "Karyawan", "id", new String[]{"Kode Karyawan", "Nama Karyawan", "Alamat",
			"Kota", "Kode Pos", "Provinsi", "No. Telp", "No. HP", "E-Mail", "Keterangan"}, 
			new String[]{"getNama"}),
	
	PELANGGANs("Pelanggans", "Pelanggan", "id", new String[]{"Kode Pelanggan", "Nama Pelanggan", 
			"Alamat", "Kota", "Kode Pos", "Provinsi", "No. Telp", "No. HP", "E-Mail", "Keterangan"}, 
			new String[]{"getNama"}),
	
	SUPPLIERs("Suppliers", "Supplier", "id", new String[]{"Kode Supplier", "Nama Supplier", "Alamat", 
			"Kota", "Kode Pos", "Provinsi", "No. Telp", "Nama Agen", "HP Agen", "E-Mail Agen",
			"Keterangan"}, new String[]{"getKode", "getNama", "getLokasi"});
	
	private String name;
	private String tableName;
	private String primaryKey;
	private String[] columnNames;
	private String[] modelColumnNamesGetter;
	
	private TYPE(String name, String tableName, String primaryKey, 
			String[] columnNames, String[] modelColumnNamesGetter){
		this.name = name;
		this.tableName = tableName;
		this.primaryKey = primaryKey;
		this.columnNames = columnNames;
		this.modelColumnNamesGetter = modelColumnNamesGetter;
	}

	public int getColumnCount(){
		return this.columnNames.length;
	}
	
	public String[] getModelColumnNamesGetter(){
		return this.modelColumnNamesGetter;
	}
	
	public String getName(){
		return this.name;
	}
	
	public void setName(String name){
		this.name = name;
	}
	
	public String getTableNama(){
		return this.tableName;
	}
	
	public void setTableName(String tableName){
		this.tableName = tableName;
	}
	
	public String getPrimaryKey(){
		return this.primaryKey;
	}
	
	public void setPrimaryKey(String primaryKey){
		this.primaryKey = primaryKey;
	}
	
	public String[] getColumnNames(){
		return this.columnNames;
	}
	
	public void setColumnNames(String[] columnNames){
		this.columnNames = columnNames;
	}
	
}
